package com.offcn.controller;

import com.offcn.service.SetmealService;
import com.offcn.utils.Result;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: offcnpe_parent
 * @description:
 * @author: xin yi
 * @create: 2021-07-21 09:31
 */
@RestController
@RequestMapping("/setmealcli")
public class SetmealController {

    @Reference
    private SetmealService setmealService;

    /*查询所有的套餐*/
    @RequestMapping("/m_getAllSetmeal")
    public Result m_getAllSetmeal(){
        return setmealService.m_getAllSetmeal();
    }

    /*查询单个套餐参数根据id*/
    @RequestMapping("/m_findInfoById")
    public Result m_findInfoById(Integer id){
        return setmealService.m_findInfoById(id);
    }
}
